// 使用闭包的形式来实现模块化

(function() {

    console.log(ModlueXiaoming.name);
    var flag = true;
    var name = '小明'
    if (flag) {
        console.log(name);
    }
    const xiaoming = {
        flag: flag,
        name: name,
    }
    return xiaoming;
})()